import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import '@/styles/index.scss';
import App from './App.vue'
import { pinia } from './store';
import router from './router'
import debounceDirective from './directives/debounce.js';
const app = createApp(App);

app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia);
app.use(router);
app.directive('debounce', debounceDirective);
app.mount('#app')
